<?php
/* SVN FILE: $Id$ */

/**
 * Enter description here ....
 *
 * @filesource
 * @copyright    Copyright (c) 2006, .
 * @link
 * @package
 * @subpackage
 * @since
 * @version      $Revision$
 * @modifiedby   $LastChangedBy$
 * @lastmodified $Date$
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Controller :: Courses
 *
 * Enter description here...
 *
 * @package
 * @subpackage
 * @since
 */
class CoursesController extends AppController
{
    var $name = 'Courses';
    
    var $scaffold;
/*
	function index()
	{
		$this->set('data', $this->Course->findAll());
	}
	
	function view($id)
	{
		$this->set('data', $this->Course->read());
	}
	
	function add()
	{
		if (empty($this->params['data']))
		{
			$this->render();
		}
		else
		{
			if ($this->Course->save($this->params['data']))
			{
				$this->flash('Your Course has been saved.','/courses');
			}
			else
			{
				$this->set('data', $this->params['data']);
				$this->render('edit');
			}
		}
	}
	
	function edit($id=null)
	{
		if (empty($this->params['data']))
		{
			$this->Course->setId($id);
			$this->params['data'] = $this->Course->read();
			$this->render();
		}
		else
		{
			if ( $this->Course->save($this->params['data']))
			{
				$this->flash('Your Course has been updated.','/courses');
			}
			else
			{
				$this->set('data', $this->params['data']);
				$this->render();
			}
		}
	}
	
	function delete($id)
	{
		if ($this->Course->del($id))
		{
			$this->flash('The Course with id: '.$id.' has been deleted.', '/courses');
		}
	}
*/

}

?>